﻿<%@ Page Title="" Language="C#" MasterPageFile="~/administrator/site.master" AutoEventWireup="true" CodeFile="products.aspx.cs" Inherits="administrator_products" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">    
<style>
.hide{display:none;}
.table-format{border: 1px solid gray; width: 100%}
tr.th{background: url(images/bg-head-grid.gif) repeat-x; height: 26px;}
tr.even{height: 24px; background: gainsboro;}

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
      <table class="tbthemsp" width="100%" cellspacing="5">
            <tr>
                <td><asp:Label runat="server" ID="lblthongbao" ForeColor="red" BackColor="yellow"></asp:Label></td>
            </tr>
   <%--   <asp:ScriptManager ID="ScriptManager1" runat="server">
      </asp:ScriptManager>
      <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <ContentTemplate>--%>
              <tr><td>Nhóm sản phẩm:</td><td><asp:DropDownList runat="server" ID="drdnhomcha" 
                      Width="250" onselectedindexchanged="drdnhomcha_SelectedIndexChanged" AutoPostBack="true"/></td></tr>
              <tr><td class="style1">Loại sản phẩm:</td><td class="style1">
                  <asp:DropDownList runat="server" ID="drdnhomcon" Width="250" AutoPostBack="true" 
                      onselectedindexchanged="drdnhomcon_SelectedIndexChanged"/></td></tr>
 <%--   </ContentTemplate>
      </asp:UpdatePanel>--%>
      <tr>
        <td colspan="2">Xóa<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="images/folder_closed_delete.png" OnClick="DeleteMenu"/></td>
      </tr>
            </table>

                <table class="table-format">
    <tr class="th"><th>Tên sản phẩm</th><th>Ảnh</th><th class="style3">Tóm tắt</th>
    <th>Giá</th><th>Giá Online</th><th>Số lượng</th><th>Đã bán</th><th>Còn Lại</th>
        <th class="style2">Chọn xóa</th><th class="style1">Chọn sửa</th>
    </tr>
    <asp:Repeater runat="server" ID="rpt_product" OnItemCommand="UpdateCheck">
        <ItemTemplate>
         <tr><td><asp:Label runat="server" ID="lblid" CssClass="hide" Text='<%#Eval("ProductID") %>'></asp:Label><%#Eval("Name") %></td>
         <td>
            <img src="../images/<%#Eval("Image") %>" width="70" height="70"/>
         </td>
         <td>
            <%#ThuVien.Lib.ReplaceStringToShort(Eval("Descriptions").ToString(),35)%>
         </td>
         <td><%#Eval("Price") %></td>
         <td>
            <%#Eval("PriceOnline") %>
         </td>
         <td>
            <%#Eval("Quantity") %>
         </td>
            <td><asp:CheckBox runat="server" ID="chk"/></td><td><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="images/tick_octagon.png" CommandName="edit"/></td>
            </tr>
        </ItemTemplate>
           <ItemTemplate>
         <tr><td><asp:Label runat="server" ID="lblid" CssClass="hide" Text='<%#Eval("ProductID") %>'></asp:Label><%#Eval("Name") %></td>
         <td>
            <img src="../images/<%#Eval("Image") %>" width="70" height="70"/>
         </td>
         <td>
            <%#ThuVien.Lib.ReplaceStringToShort(Eval("Descriptions").ToString(),35)%>
         </td>
         <td><%#Eval("Price") %></td>
         <td>
            <%#Eval("PriceOnline") %>
         </td>
         <td>
            <%#Eval("Quantity") %>
         </td>
          <td>
            <%#Eval("Daban") %>
         </td>
          <td>
            <%#Eval("Conlai") %>
         </td>
            <td><asp:CheckBox runat="server" ID="chk"/></td><td><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="images/tick_octagon.png" CommandName="edit"/></td>
            </tr>
        </ItemTemplate>

    </asp:Repeater>
   </table>
</asp:Content>

